package o;

import android.content.Context;
import com.huawei.appgallery.foundation.account.bean.UserSession;

public class dtx extends dpn<Boolean, Boolean> {
    private static final String ˋ = dtx.class.getSimpleName();
    private static long ˏ = 1800000;

    protected /* synthetic */ Object ˋ(Context context, Object obj) throws InterruptedException {
        return ॱ(context, (Boolean) obj);
    }

    protected /* synthetic */ void ˏ(Context context, Object obj, Object obj2) throws InterruptedException {
        ˋ(context, (Boolean) obj, (Boolean) obj2);
    }

    protected /* synthetic */ Object ॱ(Context context) throws InterruptedException {
        return ˋ(context);
    }

    protected Boolean ˋ(Context context) {
        if (!eqp.ᐝ()) {
            Logger.ˎ("APP_SYN", ˋ + "  homecountry is not china. no need to start MultyDeviceSynTask.");
            return Boolean.valueOf(false);
        } else if (cep.ˏ()) {
            if (System.currentTimeMillis() - etz.ˎ().ॱ("last_app_syn_time", 0) < ˏ) {
                Logger.ˎ("APP_SYN", ˋ + "  less than half hours. no need to start MultyDeviceSynTask.");
                return Boolean.valueOf(false);
            } else if (!UserSession.getInstance().isLoginSuccessful()) {
                Logger.ˎ("APP_SYN", ˋ + " not login.  no need to start MultyDeviceSynTask.");
                return Boolean.valueOf(false);
            } else if (!dtw.ˎ()) {
                Logger.ˎ("APP_SYN", ˋ + " syn btn not open. no need to start MultyDeviceSynTask.");
                return Boolean.valueOf(false);
            } else if (!dtw.ˋ()) {
                Logger.ˎ("APP_SYN", ˋ + " not wifi. no need to start MultyDeviceSynTask.");
                return Boolean.valueOf(false);
            } else if (!ejj.ˊ().ˎ()) {
                return Boolean.valueOf(true);
            } else {
                Logger.ˎ("APP_SYN", ˋ + " child mode open. no need to start MultyDeviceSynTask.");
                return Boolean.valueOf(false);
            }
        } else {
            Logger.ˎ("APP_SYN", ˋ + " can not silent install. no need to start MultyDeviceSynTask.");
            return Boolean.valueOf(false);
        }
    }

    protected Boolean ॱ(Context context, Boolean bool) {
        if (!bool.booleanValue()) {
            return Boolean.valueOf(false);
        }
        Logger.ˎ("APP_SYN", ˋ + " execute");
        etz.ˎ().ˎ("last_app_syn_time", System.currentTimeMillis());
        dtz.ॱ().ˊ();
        return Boolean.valueOf(true);
    }

    protected void ˋ(Context context, Boolean bool, Boolean bool2) {
    }
}
